﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server" BorderStyle="Solid" BorderWidth="1px" Width="400px">
            <asp:Label ID="Label1" runat="server" Text="Dang Ky" BackColor="#3366CC" Font-Bold="True"
                ForeColor="White" Style="text-align: center" Width="100%"></asp:Label>
            <br />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" Style="text-align: center" />
            <br />
            <asp:Label ID="Label2" runat="server" Style="text-align: right" Text="Ten nguoi dung:"
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtUsername" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                ErrorMessage="Username is required" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label3" runat="server" Style="text-align: right" Text="Mat Khau:"
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                ErrorMessage="Password is required" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label6" runat="server" Style="text-align: right" Text="Nhac lai mat khau:"
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtConfirmPassword"
                ErrorMessage="Confirm Password is required" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                ControlToValidate="txtConfirmPassword" ErrorMessage="Password and Confirm Password invalid"
                SetFocusOnError="True">*</asp:CompareValidator>
            <br />
            <br />
            <asp:Label ID="Label9" runat="server" Style="text-align: right" Text="Email:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Email is required" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Email is invalid" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            <br />
            <br />
            <asp:Label ID="Label7" runat="server" Style="text-align: right" Text="Ho va ten dem:"
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtFirstName" runat="server" Width="200px"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label8" runat="server" Style="text-align: right" Text="Ten:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtLastName" runat="server" Width="200px"></asp:TextBox>
            <br />
            <asp:CustomValidator ID="CustomValidator2" runat="server" Display="None" ErrorMessage="CustomValidator"></asp:CustomValidator>
            <br />
            <asp:Label ID="Label5" runat="server" Style="text-align: right" Width="150px"></asp:Label>
            <asp:Button ID="btnRegister" runat="server" OnClick="btnRegister_Click" Text="Dang Ky" />
            &nbsp;|
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Dang nhap</asp:HyperLink>
            <br />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
